﻿namespace Models
{
    public class Class1
    {
        public string 姓名;
        public int Age;
        public DateTime Birthday;
        public Persons()
        {
            this.Name = "张三";

        }
        public void RefDemo()
        {
            int num = 0;
            RefDemo2(ref num);
            Console.WriteLine(num);
        }
        public void RefDemo2(ref int num)
        {
            Age += 10;
        }
    }
}
